define({ "api": [
  {
    "type": "POST",
    "url": "/app/tbk_auth_callback",
    "title": "淘宝客认证回调",
    "sampleRequest": [
      {
        "url": "http://192.168.1.134:8800/app/tbk_auth_callback"
      }
    ],
    "description": "<p>淘宝客认证回调地址。</p> <p><span style=\"color:red\">注：淘宝认证拼接出的url，state字段为用户的手机号</span></p> <p>示例：https://oauth.taobao.com/authorize?spm=a219a.15212433.0.0.609d669aTdMt6U&response_type=code&client_id=33328606&redirect_uri=http://8.134.70.157:8800/app/tbk_auth_callback&<span style=\"color:red\">state=15684546419</span>&view=web</p> <p>参考文档</p> <ol>     <li><a href=\"https://open.taobao.com/doc.htm?docId=118&docType=1\">淘宝OAuth2.0服务</a></li> </ol>",
    "group": "auth",
    "success": {
      "examples": [
        {
          "title": "成功响应：",
          "content": "HTTP/1.1 200 OK\n{\n    \"code\": 0,\n    \"special_id\": 2808135699\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "绑定失败:",
          "content": "{\n   \"code\": 500,\n   \"msg\": \"淘宝客账号绑定失败\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "statics/app-apidoc/tbk_auth.js",
    "groupTitle": "认证",
    "name": "PostAppTbk_auth_callback"
  },
  {
    "type": "POST",
    "url": "/app/tbk_bind_member",
    "title": "绑定会员",
    "sampleRequest": [
      {
        "url": "http://192.168.1.134:8800/app/tbk_bind_member"
      }
    ],
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "topAccessToken",
            "description": "<p>示例：630251070c0f8869eba39bf1124d23279b5656e971d96332138179711</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "openId",
            "description": "<p>示例：AAHA2R73ANxGccqB_Hk9gUSv</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "nick",
            "description": "<p>昵称</p>"
          }
        ]
      }
    },
    "group": "auth",
    "success": {
      "examples": [
        {
          "title": "成功响应：",
          "content": "HTTP/1.1 200 OK\n{\n    \"code\": 0,\n    \"data\": {\n        \"special_id\": 2811750019\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "绑定失败:",
          "content": "{\n   \"code\": 500,\n   \"msg\": \"淘宝客账号绑定失败\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "statics/app-apidoc/tbk_auth.js",
    "groupTitle": "认证",
    "name": "PostAppTbk_bind_member"
  },
  {
    "type": "POST",
    "url": "/app/dg_material_optional",
    "title": "物料搜索",
    "sampleRequest": [
      {
        "url": "http://192.168.1.134:8800/app/dg_material_optional"
      }
    ],
    "description": "<p>需要在Header里携带App客户端的用户Token，后台会判断用户是否绑定过淘宝客。</p> <p>响应结果需参考<a href=\"https://open.taobao.com/api.htm?docId=35896&docType=2\">淘宝客-推广者-物料搜索</a>文档</p>",
    "group": "tbk",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "q",
            "description": "<p>商品筛选-查询词</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_no",
            "description": "<p>页码</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_size",
            "description": "<p>每页数量</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功响应：",
          "content": "HTTP/1.1 200 OK\n{\n    \"code\": 0,\n    \"data\": {\n        \"map_data\": [\n            {\n                \"category_id\": 201160807,\n                \"category_name\": \"设计素材/源文件\",\n                \"commission_rate\": \"135\",\n                \"commission_type\": \"COMMON\",\n                \"coupon_id\": \"\",\n                \"coupon_info\": \"\",\n                \"coupon_remain_count\": 0,\n                \"coupon_total_count\": 0,\n                \"include_dxjh\": \"false\",\n                \"include_mkt\": \"false\",\n                \"info_dxjh\": \"{}\",\n                \"item_description\": \"\",\n                \"item_id\": 570153540562,\n                \"item_url\": \"https://item.taobao.com/item.htm?id=570153540562\",\n                \"level_one_category_id\": 201156706,\n                \"level_one_category_name\": \"商务/设计服务\",\n                \"nick\": \"黑色千羽鹤\",\n                \"num_iid\": 570153540562,\n                \"pict_url\": \"https://img.alicdn.com/bao/uploaded/i4/55901646/TB2_WKLtmtYBeNjSspkXXbU8VXa_!!55901646.jpg\",\n                \"presale_deposit\": \"0\",\n                \"presale_end_time\": 0,\n                \"presale_start_time\": 0,\n                \"presale_tail_end_time\": 0,\n                \"presale_tail_start_time\": 0,\n                \"provcity\": \"北京\",\n                \"real_post_fee\": \"0.00\",\n                \"reserve_price\": \"8\",\n                \"seller_id\": 55901646,\n                \"shop_dsr\": 48552,\n                \"shop_title\": \"素材王国\",\n                \"short_title\": \"ui界面背景音效截图\",\n                \"small_images\": {\n                    \"string\": [\n                        \"https://img.alicdn.com/i3/55901646/TB2NOFYa.3iyKJjSspnXXXbIVXa_!!55901646.jpg\",\n                        \"https://img.alicdn.com/i4/55901646/TB2xlF1nXXXXXa6XXXXXXXXXXXX_!!55901646.jpg\"\n                    ]\n                }\n        ],\n        \"total\": 253\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "需要绑定淘宝客:",
          "content": "{\n   \"code\": 500,\n   \"sub_code\": \"NEED_BIND_TBK\",\n   \"msg\": \"请绑定淘宝客\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "statics/app-apidoc/tbk.js",
    "groupTitle": "淘宝客",
    "name": "PostAppDg_material_optional",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>App用户token</p>"
          }
        ]
      }
    }
  },
  {
    "type": "POST",
    "url": "/app/dg_optimus_material",
    "title": "物料精选",
    "sampleRequest": [
      {
        "url": "http://192.168.1.134:8800/app/dg_optimus_material"
      }
    ],
    "description": "<p>需要在Header里携带App客户端的用户Token，后台会判断用户是否绑定过淘宝客。</p> <p>响应结果需参考<a href=\"https://open.taobao.com/api.htm?docId=33947&docType=2\">淘宝客-推广者-物料精选</a>文档</p>",
    "group": "tbk",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_no",
            "description": "<p>页码</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_size",
            "description": "<p>每页数量</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功响应：",
          "content": "HTTP/1.1 200 OK\n{\n    \"code\": 0,\n    \"data\": {\n        \"map_data\": [\n            {\n                \"category_id\": 201332702,\n                \"click_url\": \"//s.click.taobao.com/t?e=m%3D2%26s%3D1t4bT%2BdQbKtw4vFB6t2Z2ueEDrYVVa64Dne87AjQPk9yINtkUhsv0M3DTZHX%2F6Xa%2FKoEzR7uVlFrGm54tXvqBWf3ZXjAtMwD%2FdaJX1grJf6s1TtvX%2F8tXImAYBbOVEAzUyNpxLfgKr0jWpzpm6nECz1as9dE8xRA%2F4bfyAV05cjUjA6HHqCZzNeHFlpxjvVGdgCjjBOJXdIhhQs2DjqgEA%3D%3D&scm=1007.15348.115058.0_27160&pvid=74837272-1141-493e-984d-7f5e007e26a2&app_pvid=59590_33.3.204.102_863_1643253207855&ptl=floorId:27160;originalFloorId:27160;pvid:74837272-1141-493e-984d-7f5e007e26a2;app_pvid:59590_33.3.204.102_863_1643253207855&union_lens=lensId%3AMAPI%401643253207%4074837272-1141-493e-984d-7f5e007e26a2_593332408680%401\",\n                \"commission_rate\": \"1.35\",\n                \"coupon_amount\": 0,\n                \"coupon_end_time\": \"\",\n                \"coupon_remain_count\": 0,\n                \"coupon_start_fee\": \"0.0\",\n                \"coupon_start_time\": \"\",\n                \"coupon_total_count\": 0,\n                \"item_description\": \"气泡丰富  柔软细腻 爆款热销\",\n                \"item_id\": 593332408680,\n                \"ju_online_end_time\": \"1643644799000\",\n                \"ju_online_start_time\": \"1642953600000\",\n                \"level_one_category_id\": 50008141,\n                \"level_one_category_name\": \"酒类\",\n                \"maochao_play_conditions\": \"2\",\n                \"maochao_play_discount_type\": \"2\",\n                \"maochao_play_discounts\": \"750\",\n                \"maochao_play_end_time\": \"1643299199000\",\n                \"maochao_play_free_post_fee\": \"1\",\n                \"maochao_play_start_time\": \"1643212800000\",\n                \"nick\": \"天猫超市\",\n                \"pict_url\": \"//img.alicdn.com/bao/uploaded/i3/6000000000461/O1CN01lFD6eR1FHBK8MGfvV_!!6000000000461-0-picassoopen.jpg\",\n                \"reserve_price\": \"73.6\",\n                \"seller_id\": 725677994,\n                \"small_images\": {\n                    \"string\": [\n                        \"//img.alicdn.com/i3/6000000000274/O1CN01U3hz0r1DtX639mRoo_!!6000000000274-0-at.jpg\",\n                        \"//img.alicdn.com/i2/2200783047612/O1CN01x2rTyv266LOm9JX2y_!!2200783047612-0-scmitem6000.jpg\",\n                        \"//img.alicdn.com/i2/2200783047612/O1CN019CIPyA266LRwEZPbq_!!2200783047612-0-scmitem6000.jpg\",\n                        \"//img.alicdn.com/i3/2200783047612/O1CN01byuN39266LPwzudtq_!!2200783047612-0-scmitem6000.jpg\"\n                    ]\n                },\n                \"sub_title\": \"气泡丰富  柔软细腻 爆款热销\",\n                \"title\": \"慕拉起泡酒少女水果气泡酒莫斯卡托白葡萄酒红酒双支送礼香槟果酒\",\n                \"user_type\": 1,\n                \"volume\": 2000,\n                \"zk_final_price\": \"59\"\n            },\n        ]\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "需要绑定淘宝客:",
          "content": "{\n   \"code\": 500,\n   \"sub_code\": \"NEED_BIND_TBK\",\n   \"msg\": \"请绑定淘宝客\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "statics/app-apidoc/tbk.js",
    "groupTitle": "淘宝客",
    "name": "PostAppDg_optimus_material",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>App用户token</p>"
          }
        ]
      }
    }
  },
  {
    "type": "POST",
    "url": "/app/tbk_query_goods",
    "title": "物料精选/搜索",
    "sampleRequest": [
      {
        "url": "http://192.168.1.134:8800/app/tbk_query_goods"
      }
    ],
    "description": "<p>无商品查询词返回物料精选结果，否则返回物料搜索结果</p>",
    "group": "tbk",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "q",
            "description": "<p>商品筛选-查询词</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_no",
            "description": "<p>页码</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "page_size",
            "description": "<p>每页数量</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "成功响应：",
          "content": "HTTP/1.1 200 OK\n{\n    \"code\": 0,\n    \"data\": {\n        \"map_data\": [\n            {\n                \"category_id\": 201160807,\n                \"category_name\": \"设计素材/源文件\",\n                \"commission_rate\": \"135\",\n                \"commission_type\": \"COMMON\",\n                \"coupon_id\": \"\",\n                \"coupon_info\": \"\",\n                \"coupon_remain_count\": 0,\n                \"coupon_total_count\": 0,\n                \"include_dxjh\": \"false\",\n                \"include_mkt\": \"false\",\n                \"info_dxjh\": \"{}\",\n                \"item_description\": \"\",\n                \"item_id\": 570153540562,\n                \"item_url\": \"https://item.taobao.com/item.htm?id=570153540562\",\n                \"level_one_category_id\": 201156706,\n                \"level_one_category_name\": \"商务/设计服务\",\n                \"nick\": \"黑色千羽鹤\",\n                \"num_iid\": 570153540562,\n                \"pict_url\": \"https://img.alicdn.com/bao/uploaded/i4/55901646/TB2_WKLtmtYBeNjSspkXXbU8VXa_!!55901646.jpg\",\n                \"presale_deposit\": \"0\",\n                \"presale_end_time\": 0,\n                \"presale_start_time\": 0,\n                \"presale_tail_end_time\": 0,\n                \"presale_tail_start_time\": 0,\n                \"provcity\": \"北京\",\n                \"real_post_fee\": \"0.00\",\n                \"reserve_price\": \"8\",\n                \"seller_id\": 55901646,\n                \"shop_dsr\": 48552,\n                \"shop_title\": \"素材王国\",\n                \"short_title\": \"ui界面背景音效截图\",\n                \"small_images\": {\n                    \"string\": [\n                        \"https://img.alicdn.com/i3/55901646/TB2NOFYa.3iyKJjSspnXXXbIVXa_!!55901646.jpg\",\n                        \"https://img.alicdn.com/i4/55901646/TB2xlF1nXXXXXa6XXXXXXXXXXXX_!!55901646.jpg\"\n                    ]\n                }\n        ],\n        \"total\": 253\n    }\n}",
          "type": "json"
        }
      ]
    },
    "error": {
      "examples": [
        {
          "title": "需要绑定淘宝客:",
          "content": "{\n   \"code\": 500,\n   \"sub_code\": \"NEED_BIND_TBK\",\n   \"msg\": \"请绑定淘宝客\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "statics/app-apidoc/tbk.js",
    "groupTitle": "淘宝客",
    "name": "PostAppTbk_query_goods",
    "header": {
      "fields": {
        "Header": [
          {
            "group": "Header",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>App用户token</p>"
          }
        ]
      }
    }
  }
] });
